package com.realtyManage.springboot.Dao;

import com.realtyManage.springboot.Model.Do.Code;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface CodeRepository extends JpaRepository<Code,Integer> {

    @Query(value = "SELECT * FROM code ",nativeQuery = true)
    List<Code> findCode();
}


